<?php

namespace App\Listeners;

use Illuminate\Database\Events\StatementPrepared;

class FetchModeListener
{
    /**
     * Handle the event.
     */
    public function handle(StatementPrepared $event): void
    {
        $event->statement->setFetchMode(\PDO::FETCH_ASSOC);
    }
}
